<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新增用户</title>
    <!-- Bootstrap core CSS -->
    <link href="asserts/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">
    <style>
        #main {
            width: 400px;
            margin: 20px auto;
        }

        #top {
            width: 100%;
            height: 60px;
            text-align: center;
            font-size: 28px;
            font-weight: bold;
            line-height: 60px;
            margin: 0 auto;
        }
    </style>
</head>
<body>

<div id="top">
    <label>新增用户</label>
</div>
<div id="main">
    <form class="form-horizontal" role="form" action="/insert" method="post" enctype="multipart/form-data">

        <div class="form-group">
            <label class="col-sm-5 control-label">姓名：</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="name" placeholder="请输入姓名">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-5 control-label">性别：</label>
            <div class="col-sm-5">
                <input type="radio" value="1" name="sex" checked="checked">男
                <input type="radio" value="2" name="sex" >女
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-5 control-label">年龄：</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="age" placeholder="请输入年龄">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-5 control-label">成绩：</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="grade" placeholder="请输入成绩">
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-5 col-sm-10">
                <button type="submit" class="btn btn-primary">保存</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>